import { Button, Col, Form, Input, Modal, Row, Table,Select, message, Calendar, Tooltip, Tag } from 'antd'
import React, { useRef, useState } from 'react'
import { CopyOutlined,CopyrightOutlined ,WhatsAppOutlined,CloseCircleOutlined,FormOutlined} from '@ant-design/icons';
import moment from 'moment';
import 'moment/locale/zh-cn';
import './index.scss'
import { roleList } from '../utils';
import { ajax } from '../api';
moment.locale('zh-cn');
const {Option} = Select 
const { TextArea } = Input;

export default function Teacher1(props: any) {


    const {getClassList1,classList2}=props
    const columns:any = [
        {
          title: '序号',
          dataIndex: '_v',
          render:(text:any,item:any,index:any)=>{
            return index+1
          },
          align:'center',
          width:'80px'
          
        },
        {
          title: '课程编号',
          dataIndex: 'word',
          align:'center',
          width:'100px'
          
        },
        {
          title: '课程名称',
          dataIndex: 'className',
          width:'100px',
          ellipsis:true
        },
        {
            title:"带课老师"  ,
            align:'center' ,
            dataIndex:"classTeacher",
            width:'100px',
            ellipsis:true
          },
          
          {
            title:"开课时间"  ,
            align:'center' ,
            dataIndex:"startTime",
            width:'100px',
            ellipsis:true
          },
        {
          title:"截止时间"  ,
          align:'center' ,
          dataIndex:"endTime",
          width:'100px',
            ellipsis:true
        },
        {
            title:"班级人数"  ,
            align:'center' ,
            dataIndex:"peopleNum",
            width:'100px',
              ellipsis:true
          },
          {
            title:"考试方式"  ,
            align:'center' ,
            dataIndex:"checkWay",
            width:'100px',
            ellipsis:true
          },
     
      ];

  return (
    <div>
       
        <Table dataSource={classList2} rowKey={record => record._id} columns={columns} pagination={{pageSize:4}} /> 
    </div>
  )
}
